<include file="./App/Admin/View/Common/header.html"/>
    <!-- Start Main Wrapper -->
    <div id="mws-wrapper">
    
        <!-- Necessary markup, do not remove -->
        <div id="mws-sidebar-stitch"></div>
        <div id="mws-sidebar-bg"></div>
        
        <!-- Sidebar Wrapper -->
        <div id="mws-sidebar">
        
            <!-- Searchbox -->
            <div id="mws-searchbox" class="mws-inset">
                <form action="http://www.malijuthemeshop.com/themes/mws-admin/1.5/typography.html">
                    <input type="text" class="mws-search-input" />
                    <input type="submit" class="mws-search-submit" />
                </form>
            </div>
            
            <!-- Main Navigation -->
            <div id="mws-navigation">
                <include file="./App/Admin/View/Common/left_nav.html"/>
            </div>            
        </div>
        
        <!-- Main Container Start -->
        <div id="mws-container" class="clearfix">
            <!-- Inner Container Start -->
            <div class="container">
                <div class="mws-panel grid_8 mws-collapsible">
                    <div class="mws-panel-header">
                        <span><i class="icon-table"></i> 浏览图片</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
                    <form action="{:U('Multipics/index')}" method="get">
                    <div class="dataTables_filter"><label>商品ID&nbsp;&nbsp;<input type="text" name="prodId" placeholder="按商品ID搜索" aria-controls="DataTables_Table_0" value="{$_GET['prodId']}"><input type="submit" class='btn' value="搜索"><a href="{:U('Multipics/index')}" class='btn'>清空</a></div>
                    </form>
                        <table class="mws-table mws-datatable">
                            <thead>
                                <tr>
                                    <th>图片ID</th>
                                    <th>商品号</th>
                                    <th>商品图片</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <foreach name='data' item='vo'>
                                    <tr>
                                    <td>{$vo['id']}</td>
                                    <td>{$vo['goods_id']}</td>
                                    <td>
                                    <if condition="is_null($vo['cover']) neq true">
                                        <img src="__PUBLIC__/Uploads/{$vo['thumb']}" width="50" height="50" />
                                    <else/>暂无
                                    </if>
                                    </td>
                                    <td><a href="{:U('Multipics/delete','cid='.$vo['id'])}" style="padding:0 5px" onclick="return confirm('确定要删除该图片吗？')">删除</a></td>
                                    </tr>
                                </foreach>
                            </tbody>
                        </table>
                        </div>
                        <div class="grid_8 page">
                            {$show}
                        </div>
                    </div>
                </div>
            </div>
<include file="./App/Admin/View/Common/footer.html"/>